package com.wk.eureka.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Created by wukai on 2017/11/10.
 * @EnableDiscoveryClient注解用来将当前应用加入到服务治理体系中
 * @EnableFeignClients注解开启扫描Spring Cloud Feign客户端的功能
 */
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class ConsumerFeignApplication {

    public static void main(String[] args){
        SpringApplication.run(ConsumerFeignApplication.class, args);
    }
}
